<?php
/* 
* @Title:  [商品详情模型]
* @Author: {chenlei} [chenleib5@126.com]
* @Date:   2014-04-09 09:33:25
* @Last Modified by:   Administrator
* @Last Modified time: 2014-04-27 21:40:41
* @Copyright:  [hn7m.com]
*/
class GoodsDetailsModel extends Model{
	public $table='goods_details';  //定义模型表
	//自动验证
	public $validate=array(
		);
	/**
	 * [add_data 添加数据]
	 */
	public function add_data($data){
		return $this->add($data);
	}
	/**
	 * [del_data 删除数据]
	 * @param  [type] $where [description]
	 * @return [type]        [description]
	 */
	public function del_data($gid){
		return $this->where(array('qm_goods_gid'=>$gid))->del();
	}
} 
?>